
package org.springblade.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.util.Date;

/**
 * 实体类
 *
 * @author Chill
 */
@Data
@TableName("blade_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "用户")
public class User extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户编号
	 */
	@ApiModelProperty(value = "用户编号")
	private String code;
	/**
	 * 用户平台
	 */
	@ApiModelProperty(value = "用户平台")
	private Integer userType;
	/**
	 * 账号
	 */
	@ApiModelProperty(value = "账号")
	private String account;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
	private String password;
	/**
	 * 昵称
	 */
	@ApiModelProperty(value = "昵称")
	private String name;
	/**
	 * 真名
	 */
	@ApiModelProperty(value = "真名")
	private String realName;
	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
	private String avatar;
	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱")
	private String email;
	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
	private String phone;
	/**
	 * 生日
	 */
	@ApiModelProperty(value = "生日")
	private Date birthday;
	/**
	 * 性别
	 */
	@ApiModelProperty(value = "性别")
	private Integer sex;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
	private String roleId;
	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id")
	private String deptId;
	/**
	 * 岗位id
	 */
	@ApiModelProperty(value = "岗位id")
	private String postId;
	/**
	 * 岗位
	 */
	@ApiModelProperty(value = "岗位")
	private String postName;
	/**
	 * 角色名字
	 */
	@ApiModelProperty(value = "角色名字")
	private String roleName;
	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态 1.正常 2.封锁")
	private Integer status;
	/**
	 * 月额度
	 * - 每月更新一次
	 */
	@ApiModelProperty(value = "月额度")
	private Integer mouthQuota;
	/**
	 * 额度
	 */
	@ApiModelProperty(value = "额度")
	private Integer quota;

	@ApiModelProperty(value = "自我表现分")
	private Integer selfPoint;
	@ApiModelProperty(value = "同事赞赏分")
	private Integer matePoint;
	@ApiModelProperty(value = "领导表扬分")
	private Integer leaderPoint;

	@ApiModelProperty(value = "是否领导 0.否 1.是")
	private Integer leaderFlag;
}
